package com.yjps.house.model;

import com.yjps.common.model.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name="t_house_deal_history")
public class DealHistory extends BaseModel{
    //用户id
    @Column(name = "user_id",length =11 ,nullable = false)
    private int userId;

    //房源id
    @Column(name = "house_id",length =11 ,nullable = false)
    private int houseId;

    //成交时间
    @Column(name = "deal_time",length =20 ,nullable = false)
    private String Time;

    //成交价格
    @Column(name = "deal_price",length =20 ,nullable = false)
    private String Price;

    //成交期限
    @Column(name = "deal_time_limit",length =20 ,nullable = false)
    private String timeLimit;

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public int getHouseId() {
        return houseId;
    }

    public void setHouseId(int houseId) {
        this.houseId = houseId;
    }

    public String getTime() {
        return Time;
    }

    public void setTime(String time) {
        Time = time;
    }

    public String getPrice() {
        return Price;
    }

    public void setPrice(String price) {
        Price = price;
    }

    public String getTimeLimit() {
        return timeLimit;
    }

    public void setTimeLimit(String timeLimit) {
        this.timeLimit = timeLimit;
    }
}
